package com.bdqn.shiro.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdqn.shiro.config.mybatis.IService;
import com.bdqn.shiro.pojo.Role;

import java.util.List;

/**
 *
 */
public interface RoleService extends IService<Role> {
    /**
     * 分页查询
     * @param page
     * @param role
     * @return
     */
    List<Role> getList(Page<Role> page,Role role);

    /**
     * 修改以及新增
     * @param role
     * @param rightCodes
     * @return
     */
    boolean saveRoleAndRight(Role role, String[] rightCodes);
}
